package com.bw.lib_storage.db

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.bw.lib_storage.db.dao.HistoryDao
import com.bw.lib_storage.db.entity.History

/**
 * exportSchema:true :每个版本的数据库结构
 */
@Database(entities = [History::class],version = 3, exportSchema = true)
@TypeConverters(DateConverter::class) //针对Date类型需要做转换
abstract class AppDataBase:RoomDatabase(){
    abstract fun historyDao(): HistoryDao
    //.........
}